package cn.zhz.springdoc.springboot.config;

import cn.zhz.springdoc.springboot.config.v2.OpenApi2Config;
import cn.zhz.springdoc.springboot.config.v3.OpenApi3Config;
import cn.zhz.springdoc.springboot.listen.OpenApiPushApplicationStartupRunner;
import cn.zhz.springdoc.springboot.property.OpenApiProperty;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author ZHZ
 * @since 2022-11-16
 */

@Configuration
@Import({
        OpenApiPushApplicationStartupRunner.class,
        OpenApi2Config.class,
        OpenApi3Config.class
})
@EnableConfigurationProperties(OpenApiProperty.class)
@ConditionalOnProperty(prefix = "open-api.config", value = "enabled", matchIfMissing = true)
public class SpringDocAutoConfiguration {


}
